function ResizeTabs() {
	var divContainerObj = document.getElementById('divContainer');
	if (divContainerObj != null) {
		divContainerObj.style.overflowY = "hidden";
	
		var height = divContainerObj.style.height.replace("px", "") - 40 + "px";
		var tabGeralObj = document.getElementById('pnlGeral');
		
		if (tabGeralObj != null) {
			tabGeralObj.style.overflowX = "hidden";
			tabGeralObj.style.overflowY = "scroll";
			tabGeralObj.style.height = height;
		}
		
		var tabNormaProcedimentoObj = document.getElementById('tabNormaProcedimento');
		
		if (tabNormaProcedimentoObj != null) {
			tabNormaProcedimentoObj.style.overflowX = "hidden";
			tabNormaProcedimentoObj.style.overflowY = "scroll";
			tabNormaProcedimentoObj.style.height = height;
		}
	}
}

function ResizeOnLoad(tabId) {
	var objDivContainer = document.getElementById("divContainer");
	if (objDivContainer != null) {
		objDivContainer.style.overflowY = "hidden";
		ResizeTab(tabId);
	}
	
}

function ShowButton(objId) {
	var obj = document.getElementById(objId);
	if (obj != null) {
		obj.style.display = "block";
	}
}

function HiddeButton(objId) {
	var obj = document.getElementById(objId);
	if (obj != null) {
		obj.style.display = "none";
	}
}

function doRequisitoOk(objId) {
	ShowButton(objId + "btnAnexo");
	HiddeButton(objId + "btnNc");
}

function doRequisitoNcObs(objId) {
	HiddeButton(objId + "btnAnexo");
	ShowButton(objId + "btnNc");
}

function doHiddeAllRequisito(objId) {
	HiddeButton(objId + "btnAnexo");
	HiddeButton(objId + "btnNc");
}

function doNormaOk(objId) {
	ShowButton(objId + "btnAnexoNorma");
	HiddeButton(objId + "btnNcObsNorma");
}

function doNormaNcObs(objId) {
	HiddeButton(objId + "btnAnexoNorma");
	ShowButton(objId + "btnNcObsNorma");
}

function btnDesc(idBtn, idTxt, value) {
	var objBtn = document.getElementById(idBtn);
	if (objBtn != null) {
		objBtn.disabled = value;
	}
	var objTxt = document.getElementById(idTxt);
	if (objTxt != null) {
		objTxt.disabled = value;
	}
}
